import { createRouter, createWebHistory } from 'vue-router';
import { constantRouterMap } from './router.config'
const router = createRouter({
  history: createWebHistory(),
  routes: constantRouterMap,
  scrollBehavior: () => ({ left: 0, top: 0 })
})
export default router
// 配置路由器
export function setupRouter(app) {
  app.use(router);
}